package com.roomwrod.model;

import java.io.Serializable;

import androidx.annotation.ColorInt;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "t_word")
public class Word implements Serializable {
    @PrimaryKey(autoGenerate = true)
    private int id;
    @ColumnInfo(name = "words")
    private String words;
    @ColumnInfo(name = "chinese")
    private String chinese;
    @ColumnInfo(name = "isshowchines")
    private boolean isshowChines;

    public Word(String words, String chinese, boolean isshowChines) {
        this.words = words;
        this.chinese = chinese;
        this.isshowChines = isshowChines;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getWords() {
        return words;
    }

    public void setWords(String words) {
        this.words = words;
    }

    public String getChinese() {
        return chinese;
    }

    public void setChinese(String chinese) {
        this.chinese = chinese;
    }

    public boolean isIsshowChines() {
        return isshowChines;
    }

    public void setIsshowChines(boolean isshowChines) {
        this.isshowChines = isshowChines;
    }
}
